package MIPS;

public class Syscall extends Mips {
    private int type;   //1:print int  4:print String   5:read 10:exit

    public Syscall(int type) {
        super(Operate.SYSCALL);
        this.type = type;
    }

    public int getType() {
        return this.type;
    }

    public String toString() {
        return "li $2 " + type + "\n" + opToString() + "\n";
    }
}
